<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ModifySyncTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('brand_store', function (Blueprint $blueprint) {
            $blueprint->primary(['brand_id', 'store_id']);
        });

        Schema::table('category_store', function (Blueprint $blueprint) {
            $blueprint->primary(['store_id', 'goods_category_id']);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
